import request from '@/utils/request'

// 团购第三方配置编辑
export function groupBuyConfigEdit (data) {
    return request({
        url: '/do?c=440012',
        method: 'post',
        data: data
    })
}
// 扫描券码获取团购券信息
export function checkCoupon (data) {
    return request({
        url: '/do?c=440003',
        method: 'post',
        data: data
    })
}
// 团购商品列表
export function groupBuyConfigList (data) {
    return request({
        url: '/do?c=440001',
        method: 'post',
        data: data
    })
}
// 输码获取团购券信息
export function checkCouponByInput (data) {
    return request({
        url: '/do?c=440004',
        method: 'post',
        data: data
    })
}
// 确认验券并兑换套餐
export function affirmCheckGetMeals (data) {
    return request({
        url: '/do?c=440021',
        method: 'post',
        data: data
    })
}
export function affirmCheckGetQm (data) {
    return request({
        url: '/do?c=440022',
        method: 'post',
        data: data
    })
}
export function affirmCheckGetTicket (data) {
    return request({
        url: '/do?c=590015',
        method: 'post',
        data: data
    })
}
export function getCheckGetTicket (data) {
    return request({
        url: '/do?c=590016',
        method: 'post',
        data: data
    })
}
export function affirmCheckGetYz (data) {
    return request({
        url: '/do?c=440021',
        method: 'post',
        data: data
    })
}
// 美团配置详情
export function mtconfigDetail (data) {
    return request({
        url: '/do?c=440008',
        method: 'post',
        data: data
    })
}
// 美团配置新增&&编辑
export function editMtConfig (data) {
    return request({
        url: '/do?c=440009',
        method: 'post',
        data: data
    })
}
// 商家获取session
export function mtGetSession (data) {
    return request({
        url: '/do?c=440010',
        method: 'post',
        data: data
    })
}
//  获取并存储美团团购商品信息
export function mtProductDetail (data) {
    return request({
        url: '/do?c=440002',
        method: 'post',
        data: data
    })
}
//  刷新session
export function refreshSession (data) {
    return request({
        url: '/do?c=440011',
        method: 'post',
        data: data
    })
}
//  美团商品分类
export function mtProStype (data) {
    return request({
        url: '/do?c=440015',
        method: 'post',
        data: data
    })
}
//  美团团购售卖状态
export function mtSaleStatus (data) {
    return request({
        url: '/do?c=440013',
        method: 'post',
        data: data
    })
}
//  美团业务类型
export function mtBusinessType (data) {
    return request({
        url: '/do?c=440016',
        method: 'post',
        data: data
    })
}
//  验券记录
export function mtGroupRecord (data) {
    return request({
        url: '/do?c=440005',
        method: 'post',
        data: data
    })
}
//  撤销验券
export function mtCancleVerify (data) {
    return request({
        url: '/do?c=440017',
        method: 'post',
        data: data
    })
}
//  关联店铺
export function relevanceStore (data) {
    return request({
        url: '/do?c=440019',
        method: 'post',
        data: data
    })
}
//  获取当前session适用的门店
export function getOpenShopUuid (data) {
    return request({
        url: '/do?c=440018',
        method: 'post',
        data: data
    })
}
